package com.itheima.stock.service;

import com.itheima.stock.pojo.vo.req.AddPermissionVo;
import com.itheima.stock.pojo.entity.SysPermission;
import com.itheima.stock.pojo.vo.req.EditPermissionVo;
import com.itheima.stock.pojo.vo.resp.R;

import java.util.List;
import java.util.Map;

public interface PermissionsService {
    R<List<SysPermission>> getPermissions();

    R<List<Map>> getPermissionsTree();

    R addPermission(AddPermissionVo addPermissionVo);

    R editPermission(EditPermissionVo editPermissionVo);

    R delPermission(String permissionId);
}
